home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 050 / bix02.arc / WORD.PAS < prev    next >
Pascal/Delphi Source File  |  1986-08-04  |  803b  |  18 lines

  1. Procedure FillWord ( VAR mem; Count,Val : integer);
  2.   Begin Inline($C4/$BE/mem/       {les   di,mem[bp]    }
  3.                $8B/$46/<val/      {mov   ax,val[bp]    }
  4.                $8B/$4E/<count/    {mov   cx,count[bp]  }
  5.                $FC/               {cld  ;forward dir   }
  6.                $F3/$AB);          {rep   stosw         }
  7.   End;
  8.  
  9. Procedure MoveWord(VAR Source,Dest;Count:integer);
  10. Begin Inline($1E/              {push  ds             }
  11.              $C4/$7E/<dest/    {les   di,dest[bp]    }
  12.              $C5/$76/<source/  {lds   si,source[bp]  }
  13.              $8B/$4E/<count/   {mov   cx,count[bp]   }
  14.              $FC/              {cld                  }
  15.              $F3/$A5/          {rep movsw            }
  16.              $1F);             {pop ds               }
  17. end;
  18.